import spock.lang.Specification
import spock.lang.Unroll

/**
 * Created by houjinxin on 17-3-31.
 */
class HelloSpockSpec extends Specification {

    def "length of Spock's and his friends' names"() {
        expect:
            name.size() == length

        where:
            name     | length
            "Spock"  | 5
            "Kirk"   | 4
            "Scotty" | 6
    }

    @Unroll
    def "length of #name's"(){
        expect:
            name.size() == length

        where:
            name     | length
            "Spock"  | 5
            "Kirk"   | 4
            "Scotty" | 6
    }

}
